package com.leyou.mall.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.leyou.mall.data.dto.MallGoodsCommentDto;
import com.leyou.mall.data.dto.MallGoodsDto;
import com.leyou.mall.data.entity.MallGoods;
import com.leyou.mall.data.vo.MallGoodsVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xhh
 * @since 2022-07-04
 */
public interface MallGoodsMapper extends BaseMapper<MallGoods> {
    List<MallGoodsDto> goodsList(MallGoodsVo vo);
    MallGoodsDto goodsOne(@Param("id") Integer goodsId);
    List<MallGoodsCommentDto> commentList(Integer goodsId);
    Page<MallGoodsCommentDto> commentList(Page<MallGoodsCommentDto> page, @Param("id") Integer goodsId);
}
